import { http } from '@/utils/https'
import type { HotResult } from '@/types/hot'
import type { PageParams } from '@/types/global'

export type HotParams = PageParams & { subType?: string }

// 特惠推荐通用接口
export const getHotRecommendApi = (url: string, data?: HotParams) => {
  return http<HotResult>({
    method: 'GET',
    url,
    data,
  })
}
